package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    ShoppingCart selectByList(Long userId, Long dishId, Long setmealId, String dishFlavor);

    Integer updateNumber(ShoppingCart shoppingCart);

    Integer insert(ShoppingCart shoppingCart);

    List<ShoppingCart> selectAll(Long userId);

    Integer deleteAll(Long userId);

    Integer deleteOne(Long userId, Long dishId, Long setmealId, String dishFlavor);

    void insertBatch(List<ShoppingCart> shoppingCartList);
}
